package com.mozz.finally_work.utils;

import org.pegdown.PegDownProcessor;

public class ParseMarkdown {
    public static String parse(String markdownSource){
        // 将 content由markdown转为html
        PegDownProcessor pdp = new PegDownProcessor(Integer.MAX_VALUE);
        String htmlContent = pdp.markdownToHtml(markdownSource);
        return htmlContent;
    }
}
